﻿
<script>

  // thisDoc refers to the "importee", which is blog-post.html
  var thisnavigation = document.currentScript.ownerDocument;

  // thatDoc refers to the "importer", which is index.html
  var thatnavigation = document;

  // grab the contents of the #blog-post from this document
  // and append it to the importing document.
  var navigationcontent = thisnavigation.querySelector('#navigation-1');
  thatnavigation.body.appendChild(thatnavigation.importNode(navigationcontent, true));
  console.log(thatnavigation.getElementById("navigation-0"));
  thatnavigation.getElementById("navigation-0").appendChild(document.importNode(navigationcontent, true));
</script>  